package com.origin.baselibrary.bean;

import android.util.Log;

import com.flyco.tablayout.listener.CustomTabEntity;

public class TabEntityBean implements CustomTabEntity {
    private String title;
    private int selectedIcon;
    private int unSelectedIcon;


    public static void getBean() {
        try {
            TabEntityBean bean = TabEntityBean.class.newInstance();
            bean.title = "xx";
            Log.e("TabEntityBean title",""+bean.title);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public TabEntityBean() {

    }

    public TabEntityBean(String title, int selectedIcon, int unSelectedIcon) {
        this.title = title;
        this.selectedIcon = selectedIcon;
        this.unSelectedIcon = unSelectedIcon;
    }

    @Override
    public String getTabTitle() {

        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return selectedIcon;
    }

    @Override
    public int getTabUnselectedIcon() {
        return unSelectedIcon;
    }
}
